﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;

using Global.Class.Library;

namespace DataTransferObject
{
    public class MarketingProgramAddressArea : NotifyPropertyChangeObject
    {
        private int addressAreaID;
        private string remarks;


        public MarketingProgramAddressArea()
            : this(-1, "")
        {
        }

        public MarketingProgramAddressArea(int addressAreaID, string remarks)
        {
            GlobalDefaultValue.Apply(this);

            this.AddressAreaID = addressAreaID;
            this.Remarks = remarks;
        }

        #region Properties


        [DefaultValue(-1)]
        public int AddressAreaID
        {
            get { return this.addressAreaID; }
            set { ApplyPropertyChange<MarketingProgramAddressArea, int>(ref this.addressAreaID, o => o.AddressAreaID, value); }
        }


        [DefaultValue("")]
        public string Remarks
        {
            get { return this.remarks; }
            set { ApplyPropertyChange<MarketingProgramAddressArea, string>(ref this.remarks, o => o.Remarks, value); }
        }

        #endregion
    }
}
